#pragma once
#include "BaseShape.h"
#ifndef _SQUARE_
#define _SQUARE_

#define NUM_OF_ANGLE 4

class CSquare : public BaseShape
{
public:
	double radiansOffset;
	INT lengthSide;
private:
	CRect m_rectSquare;
public:
	CSquare(void);
	CSquare(CPoint, CPoint, COLORREF);
	BOOL Draw(CDC *cDC);
	~CSquare(void);
	CSquare (CPoint m_pBegin, CPoint m_pEnd, COLORREF m_clrBack, COLORREF m_cPenColor, BASESHAPE__T m_nShapeType, INT m_nRotate);
	void Serialize ( CArchive &ar );
private:
	//thiet lap toa do cho cac dinh trong hinh chu nhat
	void setCoordinate();
	int AngleDist();
};

#endif // !_SQUARE_
